package com.hee.erp.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum WorkflowUserTypeEnum {
    NOT_SETTING(-1, "未设置"),
    ALL_PEOPLE(0, "所有人"),
    DIRECT_SUPERIOR(1, "直接上级"),
    INDIRECT_SUPERIOR(2, "间接上级"),
    BOSS(3, "老板"),
    SPECIFIED_PERSON(4, "指定人员");


    @EnumValue//标记数据库存的值是value
    @JsonValue//标记响应json值
    private final Integer value;

    private final String name;

    WorkflowUserTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return value.toString();
    }
}
